<template>
  <div class="home-page">
    <div class="item-list">
        <div  class="rotate-box">
        <Row type="flex" justify="center" align="bottom" class="code-row-bg">
          <Col span="12"><p class="item-p" style="height: 120px"><span @click="goWhiteBorder">白版</span></p></Col>
          <Col span="12"><p class="item-p" style="height: 120px"><span @click="goStorage">存储</span></p></Col>
        </Row>
        <Row type="flex" justify="center" align="bottom" class="code-row-bg">
          <Col span="12"><p class="item-p" style="height: 120px"><span @click="goProjects">项目</span></p></Col>
          <Col span="12"><p class="item-p" style="height: 120px"><span @click="goBoard">画板</span></p></Col>
        </Row>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  data() {
    return {
    }
  },
  created () {
  },
  components: {

  },
  methods: {
    goWhiteBorder(){
      this.$router.push({path:'/whiteborder'})
    },
    goStorage(){
      this.$router.push({path:'/storage'})
    },
    goProjects(){
      this.$router.push({path:'/projects'})
    },
    goBoard(){
      this.$router.push({path:'/drawBoard'})
    }
  }
}
</script>

<style scoped lang='scss'>
.home-page{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #000;

  .rotate-box{
    width: 240px;
    height: 240px;
    transform: rotate(45deg) translateZ(0);
    background: #fff;
  }

  .item-p{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    // transform: rotate(-45deg);

    span{
      font-size: 16px;
      color: #000;
      transform: rotate(-45deg);
    }
  }

  .item-list{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
  }
}
</style>
